# 使用官方 PHP 7.3 镜像.
# https://hub.docker.com/_/php
FROM php

# 将本地代码复制到容器内
COPY . /var/www/html/

# Apache 配置文件内使用 80 端口
#RUN sed -i 's/80/80/g' /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf
# && php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');" && php composer-setup.php && mv composer.phar /usr/local/bin/composer && composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ && composer selfupdate && composer install
# 将 PHP 配置为开发环境
# 如果您需要配置为生产环境，可以运行以下命令


RUN docker-php-ext-install pcntl sockets  && mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
CMD php ./var/www/html/Football/start.php start
